package com.sdy.approval.biz.service.impl;

import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.sdy.approval.biz.model.TpApproveFlow;
import com.sdy.approval.biz.model.TpApproveFlowConfig;
import com.sdy.approval.biz.model.TpConfigOld;
import com.sdy.approval.biz.mapper.TpConfigOldMapper;
import com.sdy.approval.biz.model.TpOrder;
import com.sdy.approval.biz.service.TpApproveFlowService;
import com.sdy.approval.biz.service.TpConfigOldService;
import com.sdy.approval.biz.service.TpOrderService;
import com.sdy.common.model.BizException;
import com.sdy.common.utils.Assert;
import com.sdy.mvc.service.impl.BaseServiceImpl;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Date;
import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author cgj
 * @since 2019-12-18
 */
@Slf4j
@Service
public class TpConfigOldServiceImpl extends BaseServiceImpl<TpConfigOld> implements TpConfigOldService {
    @Autowired
    private TpConfigOldMapper tpConfigOldMapper;
    @Autowired
    private TpConfigOldService tpConfigOldService;
    @Autowired
    private TpOrderService tpOrderService;
    @Autowired
    private TpApproveFlowService tpApproveFlowService;


    @Override
    public Boolean insertMany(List<TpApproveFlowConfig> list, Integer historyMax, Integer moveUser) {
        return tpConfigOldMapper.insertBetch(list, historyMax, moveUser);
    }

}
